package com.mars.boss.weixin.mapper;

import java.util.List;

import com.mars.base.mybatis.BaseMapper;
import com.mars.boss.weixin.entity.WxAgRelevancy;
import com.mars.boss.weixin.entity.WxArticle;

public interface WxAgRelevancyMapper extends BaseMapper<WxAgRelevancy, Long> {
	
	/**
	 * 添加图文到图文组
	 * @param list 图文与多图文关联关系对象
	 * @return
	 */
	public Integer addArticleList(List<WxAgRelevancy> list) ;
	
	/**
	 * 根据多图文ID删除
	 * @param articleGroupId
	 * @return
	 */
	public Integer deleteByArticleGroupId(Long articleGroupId) ;
	
	/**
	 * 根据多图文ID一对多查询图文信息
	 * @param id
	 * @return
	 */
	public List<WxArticle> getArticles(Long articleGroupId) ;
	
}